import request from '@/utils/request'

//根据流程实例id获取资源申请详细信息
export function getResourcesByCloudUpId(id) {
  return request({
    url: '/activiti/getResourcesByCloudUpId/'+id,
    method: 'get',
  })
}



// 提交变更
export function resourcesChange(data) {
  return request({
    url: '/resourcesChange/resourcesChange',
    method: 'post',
    data: data
  })
}

//根据流程实例id获取资源申请详细信息
export function getChangeDetail(id) {
  return request({
    url: '/resourcesChange/resourcesChange/'+id,
    method: 'get',
  })
}

// 审核资源变更
export function complete(data) {
  return request({
    url: '/resourcesChange/resourcesChange/complete/'+data.taskId,
    method: 'post',
    data: data
  })
}
